package com.heima.springbootmybatis.config;

import com.heima.springbootmybatis.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig
{
    @Bean
    public User getUser()
    {
        User user=new User();
        user.setId(1);
        user.setName("张三");
        return user;
    }
}
